import { getcatelist } from "@/request/api";
const state = {
    catelist:[]
};
const getters = {
    getCate(state){
        return state.catelist
    }
};
const mutations = {
    REQ_CATELIST(state,payload){
        state.catelist = payload
    }
};
const actions = {
    async getcateAction({commit}){
        getcatelist().then(res=>{
            commit('REQ_CATELIST',res.list)
        })
    }
};
export default {
    state,
    getters,
    mutations,
    actions,
    namespaced: true,
}